<?php
class err_correct_api
{
	function err_correct_api()
	{
		//
	}
	
	function update_uid($array)
	{	
		global $db;
		$old_uid=$array['old_uid'];
		$new_uid=$array['new_uid'];

		$sql = "update ".USEREC." set fromuser='$new_uid' where fromuser='$old_uid'";
		$db->query($sql);
		$sql = "update ".USEREC." set userid='$new_uid' where userid='$old_uid'";
		$db->query($sql);
	}
}
?>